package com.atguigu.gmall.common.consts;

public interface GmallConsts {
    String SEARCH_EXCHANG = "search.exchange";
    String SEARCH_DEL_QUEUE = "search.del.queue";
    String SEARCH_DEL_ROUTING_KEY = "search.del";
    String SEARCH_SAVE_ROUTING_KEY = "search.save";
    String SEARCH_DEL_TOPIC_KEY = "search.del";
    String SEARCH_SAVE_TOPIC_KEY = "search.save";

    String SEARCH_SAVE_QUEUE = "search.save.queue";
    //统一后的消息队列
    String SEARCH_ROUTING_KEY = "search.operation";
    String SEARCH_QUEUE = "search.queue";


    //首页服务  redis缓存的key prefix
    String INDEX_SUBS_PREFIX = "index:subs:";

    //购物车key前缀
    String CART_PREFIX = "cart:";
    //异步操作购物车失败的用户id集合
    String CART_ASYNCFAIL_USERIDS = "cart:fail:ids";

    //订单模块常量
    String ORDER_TOKEN_PREFIX = "order:";
    //wms服务：锁库存
    String SKU_LOCK_PREFIX = "sku:lock:";
    //锁定库存成功数据的key前缀
    String SKU_LOCK_SUCCESS_PREFIX = "sku:lock:suc:";

    //订单mq消息相关常量
    String MQ_ORDER_EXCHANGE = "order.exchange";

}
